package com.yunliuchain.examination.system.entity;

import java.util.Date;


import java.io.Serializable;

import com.yunliuchain.examination.common.entity.CreateUpdateEntity;
import com.yunliuchain.examination.common.res.CreateUpdateEntityRes;
import io.swagger.models.auth.In;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yunliuchain.examination.common.entity.BaseEntity;

/**<p>Title:系统用户表 </p>
 * <p>Description:对应表名：t_sys_user  </p>
 * <p>作者：zzc</p>
 * <p>日期：2018-04-29 11:56:14</p>
 * <p>版本：1.0</p>
 */
public class User extends CreateUpdateEntityRes{

	private static final long serialVersionUID = 7505546438126324274L;

	/**
	 * 用户ID
	 */
	private Long userId;
	/**
	 * 登录名
	 */
	private String loginName;
	/**
	 * 登录密码
	 */
	private String loginPwd;
	/**
	 * 真实姓名
	 */
	private String realName;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * QQ
	 */
	private String qq;
	/**
	 * 微信
	 */
	private String wechat;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 是否有效(0无效,1有效)
	 */
	private Integer status;
	/**
	 * 是否是超级管理员
	 */
	private Boolean isAdmin;
	/**
	 * 所属公司ID
	 */
	private Long companyId;
	/**
	 * 公司类型(0平台,1船公司,2码头,3拖车公司)
	 */
	private Integer companyType;
	/**
	 * 加密盐
	 */
	private String salt;

	
	
	public Long getUserId(){
		return userId;
	}
	
	public void setUserId(Long userId){
		this.userId = userId;
	}

	public String getLoginName(){
		return loginName;
	}
	
	public void setLoginName(String loginName){
		this.loginName = loginName;
	}

	public String getLoginPwd(){
		return loginPwd;
	}
	
	public void setLoginPwd(String loginPwd){
		this.loginPwd = loginPwd;
	}

	public String getRealName(){
		return realName;
	}
	
	public void setRealName(String realName){
		this.realName = realName;
	}

	public String getPhone(){
		return phone;
	}
	
	public void setPhone(String phone){
		this.phone = phone;
	}

	public String getQq(){
		return qq;
	}
	
	public void setQq(String qq){
		this.qq = qq;
	}

	public String getWechat(){
		return wechat;
	}
	
	public void setWechat(String wechat){
		this.wechat = wechat;
	}

	public String getEmail(){
		return email;
	}
	
	public void setEmail(String email){
		this.email = email;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Boolean getIsAdmin(){
		return isAdmin;
	}
	
	public void setIsAdmin(Boolean isAdmin){
		this.isAdmin = isAdmin;
	}

	public Long getCompanyId(){
		return companyId;
	}
	
	public void setCompanyId(Long companyId){
		this.companyId = companyId;
	}

	public Integer getCompanyType(){
		return companyType;
	}
	
	public void setCompanyType(Integer companyType){
		this.companyType = companyType;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	@Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE );
    }
}
